package com.isunland.managesystem.adapter;

import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BaseVolleyActivity;
import com.isunland.managesystem.entity.LocaleWorkQueryCountSub;
import com.isunland.managesystem.utils.MyStringUtil;
import java.util.ArrayList;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/4/8 14:56
 */
public class LocaleWorkQueryCountSubAdapter
    extends SimpleButterKnifeAdapterAdapter<LocaleWorkQueryCountSub> {

  public LocaleWorkQueryCountSubAdapter(BaseVolleyActivity context,
      ArrayList<LocaleWorkQueryCountSub> objects) {
    super(context, objects);
  }

  @Override
  protected void customizeView(TextView tvNameSearchPerson, TextView tvDepartmentSearchPerson,
      TextView tvThree, TextView tvFour, TextView tvFive, TextView tvSix, Button btn) {
    super.customizeView(tvNameSearchPerson, tvDepartmentSearchPerson, tvThree, tvFour, tvFive,
        tvSix, btn);
    tvThree.setVisibility(View.VISIBLE);
  }

  @Override protected void setText1(TextView tvOne, LocaleWorkQueryCountSub item) {
    tvOne.setText(MyStringUtil.connect(context.getString(R.string.workStaffName),
        context.getString(R.string.colon), item.getWorkStaffName()));
  }

  @Override protected void setText2(TextView tvTwo, LocaleWorkQueryCountSub item) {
    tvTwo.setText(MyStringUtil.connect(context.getString(R.string.deviceCode),
        context.getString(R.string.colon), item.getDeviceCode()));
  }

  @Override protected void setText3(TextView tvThree, LocaleWorkQueryCountSub item) {
    tvThree.setText(MyStringUtil.connect(context.getString(R.string.workDesc),
        context.getString(R.string.colon), item.getWorkDesc()));
  }
}
